package com.ssm.util;
import com.ssm.service.TeacherService;
import com.ssm.service.impl.TeacherServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Test {
    @org.junit.Test
    public void test(){
        TeacherServiceImpl ts=new TeacherServiceImpl();
        TeacherServiceImpl proxyTeacherService= (TeacherServiceImpl) ProxyFactory.CreateProxy();
        proxyTeacherService.print();
    }
}
